<form class="tableform" method='post' action='index.php?app=b2c&ctl=admin_order&act=dopay' id="doorderpay-form">
<input type='hidden' name='order_id' value='<{$order.order_id}>'>
<input type='hidden' name='inContent' value='true'>

<div class="division">
<table width="100%">
  <tr>
    <th><{t}>订单号：<{/t}></th>
    <td><{$order.order_id}> 【<{if $order.pay_status == 0}><{t}>未支付<{/t}><{elseif $order.pay_status == 1}><{t}>已支付<{/t}><{elseif $order.pay_status == 2}><{t}>处理中<{/t}><{elseif $order.pay_status == 3}><{t}>部分付款<{/t}><{elseif $order.pay_status == 4}><{t}>部分退款<{/t}><{elseif $order.pay_status == 5}><{t}>已退款<{/t}><{/if}>】</td>
    <th><{t}>下单日期：<{/t}></th>
    <td><{$order.createtime|cdate:'SDATE_STIME'}></td>
      </tr>
  <tr>
    <th><{t}>订单总金额：<{/t}></th>
    <td><{$order.total_amount|cur_odr:$order.currency}></td>
    <th><{t}>已收金额：<{/t}></th>
    <td><{$order.payed|cur_odr:$order.currency:false:true}></td>
    </tr>
  <tr>
    <th><{t}>收款银行：<{/t}></th>
    <td colspan="3"><{input type='text' id='payBank' name='bank' value='' width="80"}> &nbsp;&nbsp;<{input id="selectAccount" type="select" name='select_account' options=$pay_account  value=0 }></td>
    </tr>
    <tr>
      <th><{t}>收款帐号：<{/t}></th>
      <td colspan="3"><{input type='text' id='payAccount' name='account' value=''   width="200"}></td>
    </tr>
    <tr>
      <th><{t}>收款金额：<{/t}></th>
      <td><{input type='text' name='money' vtype="unsigned" value=$order.require_pay  width="100"}></td>
      <th><{t}>收款人：<{/t}></th>
      <td><{$op_name}></td> 
    </tr>
  <tr>
    <th><{t}>付款类型：<{/t}></th>
    <td colspan="3"><{input type="radio" name="pay_type" options=$typeList value=$pay_type}></td>
  </tr>
     <tr>
    <th><{t}>支付方式：<{/t}></th>
    <td><{input type="select" name='payment' rows=$payment valueColumn="app_id" labelColumn="app_name" value=$order.payinfo.pay_app_id}></td>
    <th><{t}>客户支付货币：<{/t}></th>
    <td><{$order.currency|cur_name}> (<{$order.cur_amount|cur:$order.currency:false:true}>)</td>
    </tr> 
    <tr>
    <th><{t}>是否开票：<{/t}></th>
    <td><{if $order.is_tax == 'true'}><{t}>是<{/t}><{else}><{t}>否<{/t}><{/if}></td>
    <th><{t}>税金：<{/t}></th>
    <td><{$order.cost_tax|cur_odr:$order.currency}></td>
   </tr>
	<tr>
    <th><{t}>当前状态：<{/t}></th>
    <td><{if $order.pay_status == 0}><{t}>未支付<{/t}><{elseif $order.pay_status == 1}><{t}>已支付<{/t}><{elseif $order.pay_status == 2}><{t}>处理中<{/t}><{elseif $order.pay_status == 3}><{t}>部分付款<{/t}><{elseif $order.pay_status == 4}><{t}>部分退<{/t}><{elseif $order.pay_status == 5}><{t}>已退款<{/t}><{/if}></td>
      <th><{t}>收取支付费用：<{/t}></th>
      <td><{$order.payinfo.cost_payment}></td>
     </tr> 
	<tr>
    <th><{t}>发票抬头：<{/t}></th>
    <td><{$order.tax_title}></td>
      <th><{t}>付款人：<{/t}></th>
      <td><{input type='text' name='pay_account' style="width:90px" value=$member.name }></td>
     </tr>
    <tr>
        <th><{t}>收款单备注：<{/t}></th>
        <td colspan="3"><textarea name="memo"  cols="40" style="width:92%" rows="" value='<{$detail.memo}>'></textarea></td>
    </tr -->
    </table>
</div>

</form>

<{area inject='.mainFoot'}>
<div class="table-action">
	<{button label=$___b2c="提交"|t:'b2c' id="doorderpay-form-submit" class="order-action" type="button"}>
</div>
<{/area}>

<script>
$('selectAccount').addEvent('change', function(e){
  e=new Event(e);
  var ipt=e.target;
  var str = ipt.value;
  var aItems = str.split('-');
  $('payBank').value = aItems[0];
  $('payAccount').value = aItems[1];
});  

$('doorderpay-form-submit').addEvent('click',function(){
	 $('doorderpay-form').fireEvent('submit',{stop:$empty})
});
</script>